import { ApiProperty } from '@nestjs/swagger';
import { UserVo } from 'src/views/user/vo/user-list.vo';

export class InformVo {
  @ApiProperty({ description: 'id', required: false })
  id: number;

  @ApiProperty({ description: '消息内容', required: false })
  content: string;

  @ApiProperty({ description: '用户id', required: false })
  userId: number;

  @ApiProperty({
    type: UserVo,
    description: '用户信息内容',
    required: false,
  })
  userInfo: UserVo;

  @ApiProperty({ description: '状态', required: false })
  status: string;

  @ApiProperty({ description: '模块类型', required: false })
  type: string;

  @ApiProperty({ description: '创建时间', required: false })
  createTime: Date;

  @ApiProperty({ description: '更新时间', required: false })
  updateTime: Date;
}

export class InformrListVo {
  @ApiProperty({
    type: [InformVo],
    description: '消息列表',
    required: false,
  })
  list: InformVo;

  @ApiProperty({ description: '页码', required: false })
  pageNum: number;

  @ApiProperty({ description: '页数', required: false })
  pageSize: number;

  @ApiProperty({ description: '总数', required: false })
  total: number;
}
